var sequelize = require('./sequelize')
var Sequelize = require('sequelize')

const tableName = 'todo'
var Todo = sequelize.define(
  tableName,
  {
    id: {
      type: Sequelize.INTEGER,
      primaryKey: true,
    },
    content: Sequelize.STRING(255),
    category: Sequelize.STRING(64),
    tag: Sequelize.STRING(32),
    isFinish: Sequelize.STRING(2),
    createDate: Sequelize.DATE,
    finishDate: Sequelize.DATE,
  },
  {
    tableName,
  }
)
module.exports = Todo
